const c=require("../controllers/order.server.controller")

function fn(app){
	 // app.route("/order?oStatus=:oStatus&page=:pageNo")
	// app.route("/order")
	app.route("/order/oStatus/:oStatus/page/:pageNo")
	.get(c.findCompOrdersByPage);

	app.route("/order/:oId")
	.put(c.updateOrderStatus);

	app.route("/ita_project4_admin/order/get/status/:oId")
	.get(c.findCompOrderStatus)
	.post(c.findCompOrderStatus);

	app.route("/order/:oId/detail")
	.get(c.getOrderDetailById)
}

module.exports=fn;